<?php if (!defined('THINK_PATH')) exit();?>﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html;charset=utf-8;" />

<link rel="stylesheet" type="text/css" href="/dqchat/Public/css/inform.css"/>
<link rel="stylesheet" type="text/css" href="/dqchat/Public/css/Homepage/style.css"/>
<script type="text/javascript" src="/dqchat/Public/js/jquery-1.11.0.min.js" ></script>

<style>

.sq_wrap { width:590px;margin:0 auto;color:#8a8686;font-size:16px;}
.sq_main { width:440px; margin:0 auto;}
.sq_main ul { margin-bottom:30px;}
.sq_main ul li {text-align:right;height:34px;line-height:34px;}
.sq_wrap h4{font-size:14px;color:#3c3c3c; text-align:left;margin:20px 0px;}
.sq_warn {color:red;text-align:center;font-size:12px;margin-bottom:15px;}
.sq_atitle { float:left;width:40%}
.sq_answears { float:left;}
.sq_custome_ques { display:none;}
.sq_answears input { width:255px;padding-left:5px;height:32px;line-height:32px;border:1px solid #9b9b9b;}
.sq_tip {color:#e46026;font-weight:bold;padding-left:10px;padding-top:20px;padding-bottom:15px;font-size:14px;}
.sq_tipinfor { width:90%; margin:0 auto;font-size:13px;}
.sq_tipinfor li {margin-bottom:10px;}
.sq_footer {padding-bottom:15px;}
.mbbn { text-align:center;}
.mbimg{cursor:pointer;}
</style>

<script type="text/javascript">
$(function(){

	$('#ques1,#ques2').change(function(){	
		if($(this).val()==9){
			$(this).parents('li').next('.sq_custome_ques').show();		
		}else{
			$(this).parents('li').next('.sq_custome_ques').hide();		
		
		}
	})
	
	$('.mbimg').click(function(){
	
		ans1 = $('.ans1').val();
		ans2 = $('.ans2').val();
		from =$('.from').val();
	
			
		  $.ajax({
             type: "POST",
             url: "<?php echo U('setquestionCheck');?>",
			 data: {from:from,ans1:ans1,ans2:ans2},
			 dataType: "json",
             success: function(data){
				if(data==1){
					message = "请回答密保问题1";
				}else if(data==2){
					message = "请回答密保问题2";
				}else if(data==3){
					message = "问题1答案错误";			
				}else if(data==4){
					message = "问题2答案错误";
				}else if(data==5){
					message = "验证成功";
					window.location.href="<?php echo U('question');?>"
				}
				 alert(message);
									}
			})		
		
	})
	

})

</script>
</head>

<body>
<div class="main_wrap">
<div class="home_menu" style="padding-bottom:40px;">
	<script type="text/javascript" src="/dqchat/Public/js/jquery-1.11.0.min.js" ></script>
<style>
.active a {background:#0094FF;color:#fff;}
</style>
<script>


$(function(){
	menu = <?php echo I('get.hmenu');?>;	
	if(menu){
	$('.home_bk').eq(menu).addClass('active');
	}
	$('.home_bk:eq(1)').click(function(){	
	$('.home_bk').removeClass('active');
	$(this).addClass('active');	
	})
})



</script>
	<div class="home_menu1">
		<div class="home_menu2" onclick="window.location.href='<?php echo U('Home/Index/index');?>'" style="cursor:pointer;width:80px;height:70px;background:url('/dqchat/Public/img/<?php echo C('filename');?>/Hlogo.png') no-repeat; _background:none;
						  _filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/dqchat/Public/img/<?php echo C('filename');?>/Hlogo.png');"></div>
		<div class="home_menu3"><a href="<?php echo U('Home/Index/index');?>"><?php echo C('title');?></a></div>
		<div class="home_menu4">		  <ul>
			<li class="home_bk"><a href="<?php echo U('Home/Index/index?hmenu=0');?>">首页</a ></li>
			<li class="home_bk"><a href ="/dqchat/download/<?php echo getdownload()?>">下载中心</a></li>
			<li class="home_bk"><a href="<?php echo U('Home/Index/rank?hmenu=2');?>">人气排行</a></li>
			<li class="home_bk"><a href="<?php echo U('User/Recharge/index?hmenu=3');?>">虚拟商城</a></li>
			<li class="home_bk"><a href="<?php echo U('User/index/index?hmenu=4');?>">个人中心</a></li>
			<li class="home_bk"><a href="<?php echo U('Home/Index/worker?hmenu=5');?>">加盟合作</a></li>		  </ul>
		</div>
		<div style="clear:both"></div>
	</div>

	<div style="clear:both"></div>
	<div class="zt" id="zt">
		<script>


$(function(){
	$('.submenu li').hover(function(){
		if(!$(this).hasClass('chover')){
		 $('.submenu li').removeClass('hover');
		 $(this).addClass('hover');
		 }
	},function(){
	$(this).removeClass('hover');
	
	})

	<?php  if(!empty($_GET['menu'])){ ?>
		id=<?php echo I('get.menu');?>;	
		$('.submenu li').eq(id-1).addClass('chover');
	<?php }?>

	
	
	$('.userNav dt:gt(0)').click(function(){
	   if($(this).siblings('dd').css("display")=='none'){
				$(this).siblings('dd').css("display",'block');
				$(this).css('background-image','url("/dqchat/Public/img/tb1.jpg")');					
		}else{
				$(this).siblings('dd').css("display",'none');
				$(this).css('background-image','url("/dqchat/Public/img/tb.jpg")');					
			}	
		})
		


})
</script>

	<div class="leftnavi">
		<div class="yh">
			<div class="yh_head">
				<div class="yh_pic">
					<img src="/dqchat/Public/img/head/<?php echo I('session.cidiograph');?>-1.png" width="56" height="56"/>
				</div>
				<div class="yh_account">
					<p class="yh_nic"><?php echo I('session.calias');?></p>
					<p class="yh_id">ID：<?php echo I('session.menuid');?></p>
				</div>
				<div style="clear:both"></div>
			</div>					
		</div>
<style>
.userNav{width:100%;color:#787878;font-family:"微软雅黑";}
.navItem{margin-bottom:1px;cursor:pointer;}
.navItem.nomargin{margin-bottom:0px;}
.navItem dt {background:url(/dqchat/Public/img/tb1.jpg) no-repeat 190px 5px #dedede;height:30px;line-height:30px;font-size:16px;}
.submenu li {margin-bottom:1px;cursor:pointer;font-size:12px;padding-left:38px;height:25px; line-height:25px;}
.submenu li.hover,.submenu li.chover{background:#ccc;color:#000;}
.submenu li.chover {cursor:text;}
.navItem dt.nopic {background-image:none;background-color:#c8c8c8;color:#000;}
.navItem dt div {float:left;}
.navItem dd{width:100%;}
.navPic {margin-top:2px;}
.navPic{margin-left:12px;}
</style>
		<div class="userNav">
			<dl class="navItem nomargin">
				<dt class="nopic" onclick=window.location.href="<?php echo U('Center/index');?>"><div class="navPic"><img  src="/dqchat/Public/img/zhanghu.jpg" /></div><div class="navTitle">账户管理</div></dt>
			</dl>
			<dl class="navItem">
				<dt><div class="navPic"><img  src="/dqchat/Public/img/fangjian.jpg" /></div><div class="navTitle">房间管理</div></dt>
				<dd>
					<ul class="submenu">
						<li onclick=window.location.href="<?php echo U('Room/index');?>?menu=1">我的房间</li>
						<li onclick=window.location.href="<?php echo U('Room/wheat');?>?menu=2">上麦记录</li>
					</ul>
				</dd>
			</dl>
			<dl class="navItem">
				<dt><div class="navPic"><img  src="/dqchat/Public/img/liwu.jpg" /></div><div class="navTitle">礼物管理</div></dt>
				<dd>
					<ul class="submenu">
						<li onclick=window.location.href="<?php echo U('Gift/giftflow');?>?menu=3">礼金流水</li>
						<li onclick=window.location.href="<?php echo U('Gift/index');?>?menu=4">送出的礼物</li>
						<li onclick=window.location.href="<?php echo U('Gift/mygift');?>?menu=5">收到的礼物</li>
					</ul>
				</dd>
				
			</dl>
			<dl class="navItem">
				<dt><div class="navPic"><img  src="/dqchat/Public/img/game.jpg" /></div><div class="navTitle">游戏管理</div></dt>
				<dd>
					<ul class="submenu">
						<li onclick=window.location.href="<?php echo U('Game/index');?>?menu=6">车行流水</li>
					</ul>
				</dd>
			</dl>			
			<dl class="navItem">
				<dt><div class="navPic"><img  src="/dqchat/Public/img/zijin.jpg" /></div><div class="navTitle">资金管理</div></dt>
				<dd>
					<ul class="submenu">
						<li onclick=window.location.href="<?php echo U('Money/index');?>?menu=7">金币流水</li>
						<?php if(I('session.webifshow') == 1): ?><li onclick=window.location.href="<?php echo U('Money/spendMoney');?>?menu=8">划币管理</li>
						<li onclick=window.location.href="<?php echo U('Money/mybox');?>?menu=9">我的保险箱</li>
					</ul>
				</dd>
			</dl>	
			<dl class="navItem">
				<dt><div class="navPic"><img  src="/dqchat/Public/img/anquan.jpg" /></div><div class="navTitle">账户安全</div></dt>
				<dd>
					<ul class="submenu">
						<li onclick=window.location.href="<?php echo U('Accountsafe/resetpsw');?>?menu=10">修改密码</li>
						<li onclick=window.location.href="<?php echo U('Accountsafe/index');?>?menu=11">设置密保</li>
						<li onclick=window.location.href="<?php echo U('Accountsafe/loginRecord');?>?menu=12">登录记录</li>
						<?php else: ?>
						<li onclick=window.location.href="<?php echo U('Money/mybox');?>?menu=8">我的保险箱</li>
					</ul>
				</dd>
			</dl>	
			<dl class="navItem">
				<dt><div class="navPic"><img  src="/dqchat/Public/img/anquan.jpg" /></div><div class="navTitle">账户安全</div></dt>
				<dd>
					<ul class="submenu">
						<li onclick=window.location.href="<?php echo U('Accountsafe/resetpsw');?>?menu=9">修改密码</li>
						<li onclick=window.location.href="<?php echo U('Accountsafe/index');?>?menu=10">设置密保</li>
						<li onclick=window.location.href="<?php echo U('Accountsafe/loginRecord');?>?menu=11">登录记录</li><?php endif; ?>
					</ul>
				</dd>
			</dl>				
		</div>
	</div>
		
		<div class="yinfor">
			<div class="center_wrap">
				<div class="center_title"><h1>账户安全</h1></div>
				<div class="sq_wrap">
					<h4>密保验证</h4>
					<div class="sq_main">
						<form name="sq_form">
						<input type="hidden" name="from" class="from" value="1" />
						<ul>
							<li>
								<div class="sq_atitle">密保问题1：</div>
								<div class="sq_answears"><?php echo ($q1); ?></div>
							</li>
						
							<li>
								<div class="sq_atitle">密保答案1：</div>
								<div class="sq_answears">
									<input type="text" name="ans1" class="ans1" />
								</div>
							</li>			
						</ul>
						<ul>
							<li>
								<div class="sq_atitle">密保问题2：</div>
								<div class="sq_answears"><?php echo ($q2); ?></div>
							</li>
						
							<li>
								<div class="sq_atitle">密保答案2：</div>
								<div class="sq_answears">
									<input type="text" name="ans2" class="ans2" />
								</div>
							</li>	

							
						</ul>	
						</form>
						<div class="mbbn"><img class="mbimg" src="/dqchat/Public/img/mbbn.jpg" /></div>
					</div>
					

					<div class="mp_menu2 sq_footer">
						<p class="sq_tip">温馨提示</p>
						<ul class="sq_tipinfor">
							<li>1、密码保护功能可以保障您登录的安全，当密码发生问题时，帮您方便快捷的取回新密码。</li>
							<li>2、请您认真填写密码保护问题及答案，并且记住密码保护问题及答案，否则密码丢失，将无法取回。</li>
						</ul>

					</div>
				</div>
			</div>
		</div>

	</div>

</div>
	</div>
</body>

</html>